package com.zhijiaoyun.dao;

import java.util.List;

import com.zhijiaoyun.dao.core.IBaseDao;
import org.apache.ibatis.annotations.Param;

import com.zhijiaoyun.model.FastNavigation;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public interface IFastNavigationDao extends IBaseDao<FastNavigation> {

	FastNavigation selectByName(String name);

	int countByParams(String name);

	List<FastNavigation> pageByParams(@Param("beginIndex") int beginIndex, @Param("pageSize") int pageSize,
			@Param("name") String name, @Param("linkUrl") String linkUrl);

	FastNavigation selectByNameNotNavigationId(@Param("navigationId") Long navigationId, @Param("name") String name);

	FastNavigation selectByLinkUrlNotNavigationId(@Param("navigationId") Long navigationId,
			@Param("linkUrl") String linkUrl);

	FastNavigation selectByLinkUrl(String linkUrl);
}